﻿@model IEnumerable<Common.Views.FaultView>
@if (Model.Count() > 0)
{
<table>
    <tr>
          <th>Fault ID</th>  
          <th>Log Date</th>
          <th>Fault Details</th>
          <th>Fault Status</th>
    </tr>
@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.FaultID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FaultDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FaultDetails)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FaultStatus)
        </td>
    </tr>
}
</table>
}
else
{
    <br /> <div style="color:Red">@Html.Label("No log entries were found")</div>
}